package bdz.projects.atwww.electrolux.views.analogue
{
	import bdz.projects.atwww.electrolux.ui.ELProgressControl;
	
	import flash.text.TextField;

	public class ELAnalogueProgressControl extends ELProgressControl
	{
		private var _timer:TextField;
		private var _timer2:TextField;
		public function ELAnalogueProgressControl()	{
			super();
		}
		override protected function initializeComponent():void{
			_timer = this["timer"];
			_timer2 = this["timer2"];
			_timer2.text = _timer.text = "00";
		}
		override public function set time(n:Number):void{
			var ns:String
			if(n > 100){
				n = 99;
			}
			ns = n < 10 ? "0"+n : n.toString();
			_timer2.text = _timer.text = ns;
		}
		
	}
}